//
//  ViewController.swift
//  TestMac
//
//  Created by yangentao on 2021/2/9.
//
//

import Cocoa
import AppKit
import SwiftSweet

class ViewController: NSViewController {

    override func loadView() {
        self.view = NSView(frame: Rect(x: 100, y: 100, width: 800, height: 500))
    }

    override func viewDidLoad() {
        super.viewDidLoad()

//        testCode()
        testSQL()

        textWrap()

//        let lb = NSTextField(labelWithString: "HaHa").constraints{ c in
//            c.centerParent()
//            c.width(38)
//            c.height(16)
//        }.apply { v in
//            logd(v.fittingSize)
//        }
//        view += lb
//        Task.foreDelay(seconds: 2) {
//            logd(lb.fittingSize,  lb.frame, lb.sizeThatFits(.zero))
//        }
//
//        print(lb.sizeThatFits(.zero))

    }

    func textWrap() {

    }


}
